/*
 * @Author: 追逐的娃 kangchao_php@163.com
 * @Date: 2024-05-07 10:27:50
 * @LastEditors: 追逐的娃 kangchao_php@163.com
 * @LastEditTime: 2024-05-08 14:46:02
 * @FilePath: \huijie-admin\src\api\manager.js
 * @Description: 
 * 
 */
import axios from '@/axios'

/**
 * 获取规则
 */
export const getRuleList = (page) => {
    return axios.get(`admin/rule/${page}`)
}

/**
 * 新增编辑菜单
 */
export const saveRule = (data) => {
    return axios.post(`admin/rule/${data.id}`,data)
}